<h2>Opdracht 2</h2>
<?php
function encodeerSimple($typ){

	foreach($typ AS $type){
		$type = strrev($type);
	  $type[2] = strtoupper($type[2]);
		echo $type."<br />";
	}
	
}
function decodeerSimple($typ){
	foreach($typ as $type){
		$type = $type;
	echo $type."<br />";
	}
}


$sentiments = array('sinterklAas', 'hansje', 'pinocchio', 'ZwaRTE PIET');
$encodeer = encodeerSimple($sentiments);
echo $encodeer;
$decodeer = decodeerSimple($sentiments);
echo $decodeer;
?>

